<me:UIVKKOPF x:Class="WPFExcelReport.UVK04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:KD="clr-namespace:WPFExcelReport;assembly=TKDSTAMM"  
                    xmlns:KA="clr-namespace:WPFExcelReport;assembly=TKDANSP" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                    xmlns:HR="clr-namespace:WPFExcelReport;assembly=THRSTAMM"  
                    xmlns:VL="clr-namespace:WPFExcelReport;assembly=TVERSART"  
                    xmlns:ZA="clr-namespace:WPFExcelReport;assembly=TZABED"  
                    xmlns:ZB="clr-namespace:WPFExcelReport;assembly=TVKZUAB"   
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS"  
                    xmlns:KV="clr-namespace:WPFExcelReport;assembly=TKUNDVER" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name="TV"
                    Loaded="Window_Loaded" 
      >
    <me:UIVKKOPF.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:M2YD x:Key="M2YD"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:PreisConverter  x:Key="price"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVKKOPF.Resources>
    <StackPanel>
        <WrapPanel> 
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" FontSize="16"  Text="{Binding Source={Localization:Translate Word=负责人:}}"></TextBlock>
                <HR:THR20 Grid.Column="1" ORDERNUM="{Binding Path=SACHBE,ElementName=TV}"
                          Width="150"/>
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top"  >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="16"  Text="{Binding Source={Localization:Translate Word=类型}}"/>
                <TextBlock Grid.Column="1" FontSize="16"   Text="{Binding VKKAUFART}" Width="30" />  
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top"  >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="16"  Text="{Binding Source={Localization:Translate Word=币种}}"/>
                <TextBlock Grid.Column="1" FontSize="16"   Text="{Binding VKKHWAEHRSL}" Width="30" />
            </Grid>
            <WrapPanel>
                <TextBlock Text="{Binding Source={Localization:Translate Word=数量}}"   FontSize="18"></TextBlock>
                <WrapPanel Visibility="{Binding IsKG,ElementName=TV,Converter={StaticResource bv}}">

                    <TextBlock Text="{Binding VKKGESMENGE1}" FontSize="18"  Width="120" ></TextBlock>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=KG}}"/>
                </WrapPanel>
                <WrapPanel>

                    <TextBlock Text="{Binding VKKGESMENGE2}" FontSize="18"  Width="120" ></TextBlock>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=M}}"/>
                    <TextBlock  FontSize="18"  Width="120" 
                                    Text="{Binding VKKGESMENGE2,Converter={StaticResource M2YD}}"/>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=YD}}"/>
                </WrapPanel>
            </WrapPanel>
           
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" FontSize="18" Text="{Binding Source={Localization:Translate Word=金额}}" ></TextBlock>
                <TextBlock Grid.Column="1" Text="{Binding VKKGESWERT}" FontSize="18" Width="80" ></TextBlock>
            </Grid>
        </WrapPanel> 
        <WrapPanel Visibility="{Binding FTVK,Converter={StaticResource bv}}">
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0"  FontSize="16"  Text="{Binding Source={Localization:Translate Word=采购单号}}" ></TextBlock>
                <ex:TXT72 MaxLength="10" Grid.Column="1" Text="{Binding VKKBESTNR,Converter={StaticResource gb2312}}"  Width="100" />
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=联系人:}}"></TextBlock>
                <TextBlock Grid.Column="1" Text="{Binding VKKBESTNR,Converter={StaticResource gb2312}}"  Width="100" />
                <KA:TSKD14  Grid.Column="2"  KUNDNR="{Binding KUNDNR,ElementName=TV}" 
                                KEY="{Binding VKKANSPRECH,ElementName=TV}" Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"/>
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=运输方式:}}"></TextBlock>
                <TextBlock   Grid.Column="1" Text="{Binding VKKVERSART,Converter={StaticResource gb2312}}"  Width="60" />
                <TextBlock   Grid.Column="2" Text="{Binding Source={Localization:Translate Word=承运人:}}"></TextBlock>
                <TextBlock   Grid.Column="3" Text="{Binding VKKSPED,Converter={StaticResource gb2312}}"  Width="60" />
                <VL:TSVL02  Grid.Column="4" SART="{Binding SART,ElementName=TV}" 
                            KEY="{Binding VSPED,ElementName=TV}" 
                            Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"/>
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=发货条件:}}"></TextBlock>
                <TextBlock Grid.Column="1" Text="{Binding VKKLIEFBED,Converter={StaticResource gb2312}}"  Width="100" />
                <SD:TSSD0241 Grid.Column="2"  KEY="{Binding LIEFBED,ElementName=TV}" 
                             Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"/>
            </Grid>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=付款方式:}}"></TextBlock>
                 <ZA:TSZA02 Grid.Column="2"  KEY="{Binding ZAHLBED,ElementName=TV}" 
                            IsEdit="False"
                            ORDERNUM="{Binding ZAHLBED,ElementName=TV}"/>
            </Grid>
        </WrapPanel>
    </StackPanel>   
</me:UIVKKOPF>
